<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1{
   width:195px;
}
.selectWidth2{
   width:205px;
}

.selectWidth{
   width:132px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<div class="t_bar">基本信息</div>
<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo"
	cellspacing="1">
	<tr>
		<td  align="right"><span class="color_red">*</span>项目名称：</td>
		<td  colspan="7">
			<input id="zh_title" name="proposal/zh_title" label="项目名称" type="text" required class="input_css required maxlength:100"  style="width: 725px;" maxlength="100" value="<x:out select="$xmlData/data/proposal/zh_title" />"/> 
		</td>
	</tr>

	<tr>
	    <td  align="right" nowrap><span class="color_red">*</span>申报日期：</td>
		<td colspan="7">
			<c:set var="submit_date"><x:out select="$xmlData/data/proposal/submit_date" /></c:set>
			<cpt:date id="submit_date" name="proposal/submit_date" value="${submit_date}" className=" required date" label="申报日期"></cpt:date> 
		</td>
	</tr>

	<tr>
		<td  align="right">项目总投资：</td>
		<td colspan="2"><input type="text" label="项目总投资"
		    class="gray valueEqual:input_total:source_total" disabled
			style="text-align: right; width: 200px" name="budgets/input_total"
			id="input_total"  value="<x:out select="$xmlData/data/budgets/input_total" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>
		<td colspan="2"   align="right"><span class="color_red">*</span>其中本企业投资：</td>
		<td ><input type="text" style="text-align: right; width: 80px"
			name="budgets/already_input_total" id="input_already"
			class="required " label="其中本企业投资"
			onchange="countFundAuto('input_','already,teamwork','total'); budget();"
			value="<x:out select="$xmlData/data/budgets/already_input_total" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>
		<td   align="right">占比（%）：</td>
		<td ><input type="text" style="text-align: right; width: 80px"
			name="budgets/already_input_total_pre" id="input_already_pre"
			class="gray" disabled
		    value="<x:out select="$xmlData/data/budgets/already_input_total_pre" />" /></td>
	</tr>
	<tr >
		<td align="right" nowrap><span class="color_red">*</span>合作单位名称：</td>
		<td colspan="2"><input type="text" maxlength="100" style=" width: 200px" name="budgets/teamwork_name"
			id="teamwork_name" class="required"  label="合作单位名称" value="<x:out select="$xmlData/data/budgets/teamwork_name" />" /></td>
		<td colspan="2" align="right" nowrap><span class="color_red">*</span>合作单位投资：</td>
		<td ><input type="text" style="text-align: right; width: 80px"
			name="budgets/teamwork_budget" id="input_teamwork"
			class="required"  label="合作单位投资"
			onchange="countFundAuto('input_','already,teamwork','total'); budget();"
			value="<x:out select="$xmlData/data/budgets/teamwork_budget" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>
		<td width="10%" align="right" nowrap>占比（%）：</td>
		<td ><input type="text" style="text-align: right; width: 80px"
			name="budgets/teamwork_budget_pre" id="input_teamwork_pre"
			class="gray" disabled
		    value="<x:out select="$xmlData/data/budgets/teamwork_budget_pre" />" /></td>
	</tr>
	
	<tr>
		<td align="right">资金来源：</td>
		<td colspan="7">
		<input type="hidden"
			style="text-align: right; width: 80px" name="budgets/input_total_2"
			id="source_total_2" disabled label="资金来源+申请金额"
			value="<x:out select="$xmlData/data/budgets/input_total_2" />"
			onfocus="InitInput.setNumber(this,9,4,2)" />
		<input type="text" style="text-align: right;width: 200px"
			name="budgets/source_total" id="source_total" class="gray" disabled
			label="资金来源"
			value="<x:out select="$xmlData/data/budgets/source_total" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>
		
	</tr>
	<tr align="center">
		<td rowspan="2"><span class="color_red">*</span>自有资金</td>
		<td rowspan="2"><span class="color_red">*</span>银行贷款</td>
		<td colspan="4">已获政府资助资金</td>
		<td rowspan="2" colspan="2"><span class="color_red">*</span>其他资金</td>
	</tr>
	<tr align="center">
		<td><span class="color_red">*</span>国家</td>
		<td><span class="color_red">*</span>省级</td>
		<td><span class="color_red">*</span>市级</td>
		<td><span class="color_red">*</span>区级</td>
	</tr>
	<tr align="center">
		<td><input type="text" style="text-align: right; width: 80px"
			name="budgets/own_fund" id="source_own" 
			onchange="countFundAuto('source_','own,bank,other,country,provincial,city,area','total');countFundAuto('source_','total,funds','total_2');"
			class="required" label="自有资金"
			value="<x:out select="$xmlData/data/budgets/own_fund" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>

		<td><input type="text" style="text-align: right; width: 80px"
			name="budgets/bank_fund" id="source_bank"
			onchange="countFundAuto('source_','own,bank,other,country,provincial,city,area','total');countFundAuto('source_','total,funds','total_2');"
			class="required" label="银行贷款"
			value="<x:out select="$xmlData/data/budgets/bank_fund" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>

		<td><input type="text" style="text-align: right; width: 80px"
			name="budgets/other_fund" id="source_other"
			onchange="countFundAuto('source_','own,bank,other,country,provincial,city,area','total');countFundAuto('source_','total,funds','total_2');"
			class="required" label="已获政府资助资金->国家"
			value="<x:out select="$xmlData/data/budgets/other_fund" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>

		<td><input type="text" style="text-align: right; width: 80px"
			name="budgets/country_fund" id="source_country"
			onchange="countFundAuto('source_','own,bank,other,country,provincial,city,area','total');countFundAuto('source_','total,funds','total_2');"
			class="required" label="已获政府资助资金->省级"
			value="<x:out select="$xmlData/data/budgets/country_fund" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>

		<td><input type="text" style="text-align: right; width: 80px"
			name="budgets/provincial_fund" id="source_provincial"
			onchange="countFundAuto('source_','own,bank,other,country,provincial,city,area','total');countFundAuto('source_','total,funds','total_2');"
			class="required" label="已获政府资助资金->市级"
			value="<x:out select="$xmlData/data/budgets/provincial_fund" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>

		<td><input type="text" style="text-align: right; width: 80px"
			name="budgets/city_fund" id="source_city"
			onchange="countFundAuto('source_','own,bank,other,country,provincial,city,area','total');countFundAuto('source_','total,funds','total_2');"
			class="required" label="已获政府资助资金->区级"
			value="<x:out select="$xmlData/data/budgets/city_fund" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>
		<td colspan="2"><input type="text"
			style="text-align: right; width: 80px" name="budgets/area_fund"
			id="source_area"
			onchange="countFundAuto('source_','own,bank,other,country,provincial,city,area','total');countFundAuto('source_','total,funds','total_2');"
			class="required " label="其他资金"
			value="<x:out select="$xmlData/data/budgets/area_fund" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>
	
	</tr>
	<tr>
		<td  align="right"><span class="color_red">*</span>立项所在地：</td>
		<td  colspan="3">
			<c:set var="address"><x:out select="$xmlData/data/proposal/address_value" /></c:set>
			<cpt:select id="address"  key="project_place"  className="select_width" value="${address}" onChange="initControlValue(this.id);setProjectPlace();"></cpt:select>
			<input type="hidden" id="address_value" name="proposal/address_value" class="required" value="${address}" label="立项所在地">
			<input type="hidden" name="proposal/address_name" value="<x:out select="$xmlData/data/proposal/address_name" />">  
			<span id="address_name_other_span"><input type="text" id="address_name_other" name="proposal/address_name_other" class="input_css required" maxlength="20" label="立项所在地其他地区" value="<x:out select="$xmlData/data/proposal/address_name_other" />"/></span>
		</td>
	
		<td  align="right"><span class="color_red">*</span>立项报备层级：</td>
		<td nowrap colspan="3">
			<c:set var="project_level"><x:out select="$xmlData/data/proposal/project_level_value" /></c:set>
			<cpt:select id="project_level"  key="project_level"  className="selectWidth" value="${project_level}" ></cpt:select>
			<input type="hidden" id="project_level_value" name="proposal/project_level_value" class="required" value="${project_level}" label="立项报备层级">
			<input type="hidden" name="proposal/project_level_name" value="<x:out select="$xmlData/data/proposal/project_level_name" />">
		</td>
	</tr>
	<tr>
		<td align="right" nowrap><span class="color_red">*</span>是否拥有自主知识产权：</td>
		<td colspan="3">
		<c:set var="property"><x:out select="$xmlData/data/proposal/property_value" /></c:set>
		<cpt:select id="property"  key="boolean"  className="selectWidth" value="${property}" ></cpt:select>
		<input type="hidden" id="property_value" name="proposal/property_value" class="required" value="${property}" label="是否拥有自主知识产权">
		<input type="hidden" name="proposal/property_name" value="<x:out select="$xmlData/data/proposal/property_name" />">
		
		</td>
		<td align="right"><span class="color_red">*</span>获奖级别：</td>
		<td colspan="3">
		<c:set var="acceptance_level"><x:out select="$xmlData/data/proposal/acceptance_level_value" /></c:set>
		<cpt:select id="acceptance_level"  key="acceptance_level"  className="select_width" value="${acceptance_level}" ></cpt:select>
		<input type="hidden" id="acceptance_level_value" name="proposal/acceptance_level_value" class="required" value="${acceptance_level}" label="获奖级别">
		<input type="hidden" name="proposal/acceptance_level_name" value="<x:out select="$xmlData/data/proposal/acceptance_level_name" />"> 
        </td>
	</tr>
	
	
	<tr>
	
	<td align="right"><span class="color_red">*</span>获奖名称：</td>
		<td colspan="3">
		<input  name="proposal/prize_name"   label="获奖名称" type="text"  class="input_css required"   maxlength="100" value="<x:out select="$xmlData/data/proposal/prize_name" />"/> 
        </td>
	   <td  align="right" nowrap><span class="color_red">*</span>获奖时间：</td>
		<td colspan="3" >
			<c:set var="prize_date"><x:out select="$xmlData/data/proposal/prize_date" /></c:set>
			<cpt:date id="prize_date" name="proposal/prize_date" className="required date" label="获奖时间"  value="${prize_date}" ></cpt:date> 
		</td>
	</tr>
	<tr>
		<td align="right">演出地点：</td>
		<td colspan="3">
		<%-- <c:set var="show_address"><x:out select="$xmlData/data/proposal/show_address_value" /></c:set>
		<cpt:select id="show_address"  key="show_address"  className="selectWidth" value="${show_address}" ></cpt:select>
		<input type="hidden" id="show_address_value" name="proposal/show_address_value" class="required" value="${show_address}" label="演出地点">
		<input type="hidden" name="proposal/show_address_name" value="<x:out select="$xmlData/data/proposal/show_address_name" />"> --%>
		<span name="proposal/show_address_name">境外</span>
		</td>
		<td align="right"><span class="color_red">*</span>演出场次：</td>
		<td colspan="3">
		<input  name="proposal/show_level"   label="演出场次" type="text"  class="input_css required"   maxlength="100" value="<x:out select="$xmlData/data/proposal/show_level" />"/> 
        </td>
        
        </tr>
        <tr>
        <td  align="right">产品类型：</td>
		<td nowrap colspan="7">
			<%-- <c:set var="product_type"><x:out select="$xmlData/data/proposal/product_type_value" /></c:set>
			<cpt:select id="product_type"  key="product_type"  className="selectWidth" value="${product_type}" ></cpt:select>
			<input type="hidden" id="product_type_value" name="proposal/product_type_value" class="required" value="${product_type}" label="产品类型">
			<input type="hidden" name="proposal/product_type_name" value="<x:out select="$xmlData/data/proposal/product_type_name" />"> --%>
			<span name="proposal/product_type_name">原创舞台剧</span>
		</td>
	</tr>
	<tr>
	<td colspan="8" class="t_bar2">申请项目资金情况
	</tr>
	<tr>
		<td  align="right">项目类别：</td>
		<td  colspan="3"><x:out select="$xmlData/data/proposal/grant_name" />
		</td> 
		
	
	<td  align="right">支持方式：</td>
		<td  colspan="3">
		<span name="proposal/sponsor_category"><x:out select="$xmlData/data/proposal/sponsor_category" /></span> 
		</td>
	</tr>

	<tr>	
			<td  align="right"  nowrap><span class="color_red">*</span>申请金额（万元）：</td>
		<td  colspan="3">
			<input id="source_funds" class="required " onchange="countFundAuto('source_','total,funds','total_2');" name="proposal/total_funds" style="text-align:right;" onfocus="InitInput.setNumber(this,7,4,2)" label="申请金额" type="text"  class="input_css "   maxlength="20" value="<x:out select="$xmlData/data/proposal/total_funds" />"/> 
		</td>
		<td  align="right">资金级次：</td>
		<td colspan="3">
		<span  name="proposal/fund_level">市级</span>
		</td>
	</tr>
	<tr>
	    <td  align="right">管理类别：</td>
		<td  colspan="3">
		<span name="proposal/manage_category"><x:out select="$xmlData/data/proposal/manage_category" /></span>
		</td>
		<td  align="right">归口管理部门：</td>
		<td  colspan="3">
			<%-- <input  name="proposal/org_name" label="归口管理部门" style="width: 88%" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/org_name" />"/> --%>
			<span name="proposal/org_name">无锡市文化广电新闻出版局</span> 
		</td>
	</tr>
	<tr>
	<td  align="right"><span class="color_red">*</span>项目所属类别：</td>
		<td nowrap colspan="7">
			<c:set var="category"><x:out select="$xmlData/data/proposal/category_value" /></c:set>
		    <cpt:checkbox key="category" name="category" repeatColumn="9" style="border: 0px; padding: 0px; margin: 0px;"></cpt:checkbox>
			<input type="hidden" id="category_value" name="proposal/category_value" class="required" value="${category}" label="项目所属类别">
			<input type="hidden" name="proposal/category_name" value="<x:out select="$xmlData/data/proposal/category_name" />">

		</td>
		
	</tr>
	<tr style="display:none"></tr>
	<tr>
		<td  align="right"><span class="color_red">*</span>项目所属产业：</td>
		<td nowrap colspan="7">
			<c:set var="industry"><x:out select="$xmlData/data/proposal/industry_value" /></c:set>
			<cpt:checkbox key="industry" name="industry" repeatColumn="5" style="border: 0px; padding: 0px; margin: 0px;"></cpt:checkbox>
			<input type="hidden" id="industry_value" name="proposal/industry_value" class="required" value="${industry}" label="项目所属产业">
			<input type="hidden" name="proposal/industry_name" value="<x:out select="$xmlData/data/proposal/industry_name" />">
		</td>
	</tr>
	<tr>
	    <td  align="right">功能分类：</td>
		<td  colspan="7">
		    <span name="proposal/grant_function"><x:out select="$xmlData/data/proposal/grant_function" /></span>
		</td>
	</tr>
	<tr>
	    <td colspan="8" class="t_bar2">申请资助依据条款
	</tr>
	<tr style="display:none"></tr>
	<tr>
		<td colspan="8">
		     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		     <span name="proposal/policy_foundation"><x:out select="$xmlData/data/proposal/policy_foundation" /></span> 
		</td>
	</tr>
	<tr>
	<td colspan="8" class="t_bar2"><span class="color_red">*</span>项目概述：简要概括项目主要成就、创新性、发展前景以及预期对行业带动作用、社会经济发展的贡献（限300字）
	</tr>
	<tr>
		<td colspan="8">
			<textarea id="brief" name="proposal/summary" rows=7 cols=150  label="项目概述"  class="textarea required maxlength:300"><x:out select="$xmlData/data/proposal/summary" /></textarea>
		    <input type="hidden" name="proposal/summary_hidden" id="proposal/summary_hidden" value="<x:out select="$xmlData/data/proposal/summary_hidden" />"/>
		</td>
	</tr>
	
</table>
<br/>
<div class="t_bar">人员信息</div>
<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo"
	cellspacing="1">
	<tr>
		<td  align="right"><span class="color_red">*</span>项目联系人：</td>
		<td  >
			<input  name="proposal/contact_psn_cname" label="项目联系人" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系电话：</td>
		<td  >
			<input  name="proposal/contact_psn_tel" label="联系电话" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_tel" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系手机：</td>
		<td  >
			<input  name="proposal/contact_psn_mobile" label="联系手机" type="text" required maxlength="11" required class="input_css required mobile"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_mobile" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>电子邮箱：</td>
		<td  >
			<input  name="proposal/contact_psn_email" label="电子邮箱" type="text" required class="input_css required email"   maxlength="50" value="<x:out select="$xmlData/data/proposal/contact_psn_email" />"/> 
		</td>
	</tr>
	<tr>
		<td  align="right">项目负责人：</td>
		<td>
			<input  name="proposal/fzr_psncode" type="hidden" required class="input_css "   maxlength="20" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/psn_code" />"/> 
		    
		    <span name="proposal/fzr_psnname" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /></span>
		    <c:set var="psnCode"><x:out select="$xmlData/data/proposal/psn_code" /></c:set>
		    <security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
				<span id="personSelect">
				<input type="button" class="button_02" style="height: 25px; padding: 1px;" id="selectPsn" value="设置">
				<cpt:personSelect key="personSelect"  addRole="3"  psnCode="${psnCode}" callback="selectPsnCall" bindEvent="click" bindObject="selectPsn" title="设置项目负责人" fltFile="personSelector.ftl"></cpt:personSelect>
				</span>
			</security:authorize>
		</td>
		<security:authorize ifNotGranted="A_DAILU_PROPOSAL"> 
		<td  align="right">联系电话：</td>
		<td  >
		<span name="proposal/fzr_tel"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" /></span>
		</td>
		<td  align="right">联系手机：</td>
		<td  >
		<span name="proposal/fzr_mobile"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" /></span>
		</td>
		</security:authorize>
		<security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
		<td  align="right"><span class="color_red">*</span>联系电话：</td>
		<td  >
		<input name="proposal/fzr_tel" label="项目负责人联系电话" type="text" required  class="input_css required"  onchange="synFzrMsg(1)"  maxlength="50"  value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" />"/>
		</td>
		<td  align="right"><span class="color_red">*</span>联系手机：</td>
		<td  >
		<input name="proposal/fzr_mobile" label="项目负责人联系手机" type="text" onchange="synFzrMsg(1)" onfocus="InitInput.setNumber(this,11,0,0)"  maxlength="11"  class="input_css required mobile"   value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" />"/>
		</td>
		</security:authorize>
		<td  align="right">电子邮箱：</td>
		<td  >
		<span name="proposal/fzr_mail"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email" /></span>
		</td>
	</tr>
</table>

<script type="text/javascript">
<!--
$(document).ready(function(){
	setProjectPlace("init");
});

function budget(){
	
	var budget1=$("#input_already").val();
	var budget2=$("#input_total").val();
	var budget3=$("#input_teamwork").val();
	$("#input_already_pre").val(formatVal(budget1*100/budget2));
	$("#input_teamwork_pre").val(formatVal(budget3*100/budget2));	

	
	
	
}


function setProjectPlace(op){
	var address = $("#address_value").val();
	if(op) address = '${address}';
	$("#address_name_other").removeClass("required");
	if(address == '02'){
		$("#address_name_other_span").show();
		$("#address_name_other").css("display","");
		$("#address_name_other").addClass("required");
	}else{
		$("#address_name_other_span").hide();
		$("#address_name_other").removeClass("required");
		$("#address_name_other").val("");
	}
}
//-->
</script>



